import static com.github.llyb120.performance.test.All.*;

generate {
    fileName "部门.xlsx"
    num 5

    field "id", "incre-gen", [base: 1]
    field "name", "step-gen", [
        options: ["市场部", "研发部", "营销部", "管理部", "后勤部"]
    ]
}

generate {
    fileName "用户.xlsx"
    num 100

    field "id", "incre-gen", [base: 10000]
    field "username", "generator-gen"
    field "true_name", "cn-generator-gen"
    field "age", "int-gen", [min: 10,max: 60]
    field "dep", "dep-gen"
    field "create_time", "date-gen", [min: "2010-01-01", max: "2020-01-01"]
}


generate {
    fileName "业务量.xlsx"
    num 1000

    field "uid", "int-gen", [min: 10000, max: 10012]
    field "banka", "int-gen", [min: 1, max: 10]
    field "xiaoka", "int-gen", [min:1, max:10]
    field "daikuan", "int-gen", [min:1, max:10]
    field "licai", "int-gen", [min: 1, max:10]
    field "baoxian", "int-gen", [min: 1, max: 10]
    field "deal_time", "date-gen", [min: "2021-06-01", max: "2021-09-30"]
}
